module.exports = (sequelize, Sequelize) => {
    const Carousel = sequelize.define('Carousel', {
      id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true
      },
      image: {
        type: Sequelize.STRING,
        allowNull: true
      },
      title: {
        type: Sequelize.STRING,
        allowNull: true
      },
      description: {
        type: Sequelize.TEXT,
        allowNull: true
      },
      blog_id: {
        type: Sequelize.STRING,
        allowNull: false
      },
    }, {
      timestamps: false , 
      tableName: 'carousel'
    })
    return Carousel
}